#!/bin/bash
if [ $1 == '' ]
then
 ETL_DATE=`date -d "-1 day" +"%Y-%m-%d"`
else
 ETL_DATE=$1
fi